﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Shopping Cart</title>
<{include file="block/meta.tpl"}>
<script type="text/javascript" src="<{$__HST_UI}>/js<{$_The.ScriptBase}>.js"></script>
</head>
<body>
<div id="wrap">
<{include file="block/header.tpl"}>

<div class="pay pay1">
	<h2></h2>
	<form id="fm_buy" method="post">
	<input type="hidden" name="action" value="update" />
	<table width="675" border="0" cellpadding="0" cellspacing="1"><tr class="head">
		<td class="t0"><{'buy_item_title'|i18n|escape:html}></td>
		<td class="t90"><{'buy_item_size'|i18n|escape:html}></td>
		<td class="t60"><{'buy_item_kuang'|i18n|escape:html}></td>
		<td class="t60"><{'buy_unit_price'|i18n|escape:html}></td>
		<td class="t80"><{'buy_quantity'|i18n|escape:html}></td>
		<td class="t60"><{'buy_delete'|i18n|escape:html}></td>
	</tr>
<{section name=i loop=$rCart}>
	<tr class="item" id="item_<{$rCart[i].Item.Sku}>">
		<td><a href="/artwork/detail.php?id=<{$rCart[i].Item.id}>"><img src="<{$rCart[i].Item.thumb|uWork_thumb:$rCart[i].Item.id:'50x50.jpg'}>"><span class="title"><{$rCart[i].Item|@uWork_i18n:title|escape:html}></span></a></td>
		<td><{$rCart[i].Item|@uWork_i18n:size_title|escape:html}></td>
		<td><a href="javascript:void(0)" class="kuang<{if $rCart[i].Item.kuang_id}>_on<{/if}>">Add</a></td>
		<td><{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span class="unit"><{$rCart[i].Item|@uWork_Price|escape:html}></span>
			<input type="hidden" class="each" value="<{math equation='q*p' p=$rCart[i].Item|@uWork_Price q=$rCart[i].Quantity}>" />
		</td>
		<td class="qt">
			<a class="minus" href="javascript:quantity_update('<{$rCart[i].Item.Sku}>',parseInt($('#item_<{$rCart[i].Item.Sku}> .quantity').html())-1);void(0);">-</a>
			<span class="quantity" rel="<{$rCart[i].Item.stock}>"><{$rCart[i].Quantity|escape:html}></span>
			<a class="plus" href="javascript:quantity_update('<{$rCart[i].Item.Sku}>',parseInt($('#item_<{$rCart[i].Item.Sku}> .quantity').html())+1);void(0);">+</a>
			<input type="hidden" class="update" name="update[<{$rCart[i].Item.Sku}>]" value="<{$rCart[i].Quantity|escape:html}>" />
		</td>
		<td class="del"><a href="?action=delete&sku=<{$rCart[i].Item.Sku}>" onclick="return confirm('<{'hint_delete_confirm'|i18n|escape:html}>');"></a></td>
	</tr>
<{/section}>
	<tr class="foot">
		<td colspan="6"><{'buy_total_price'|i18n|escape:html}>: <{if 'dollor'==$smarty.session.MONEY}>$<{else}>￥<{/if}><span id="price_all">0</span></td>
	</tr></table>
	</form>
	<div class="btn clearfix">
		<a class="continue" href="<{$sBack}>"></a>
		<a class="checkout" href="javascript:$('#fm_buy').submit();void(0);"></a>
	</div>
</div>

<{include file="block/footer.tpl"}>
</div>
</body>
</html>
